# #!/usr/bin/env python
# # -*- coding: UTF-8 -*-
# '''
# @Project ：zm_pom
# @File    ：base_test_case.py
# @IDE     ：PyCharm
# @Author  ：你的烂笔头
# @Date    ：2025/6/6 18:45
# '''
#
# from common.base_page import BasePage
# from common.logcof import log
# from utils.driver import web_driver
#
# import allure
#
#
# class BaseTestCase:
#     '''
#     每个测试类.继承这个类,子类必须包含url属性,用来在父类中获取
#     '''
#
#
#     def setup_class(self):
#         '''
#         一个类打开一次
#         :return:
#         '''
#         log.info('🚀 START')
#         self.driver = web_driver.select_browser()
#
#     @allure.tag('方法前置')
#     def setup_method(self,method):
#         '''
#         每个方法执行前调用
#         :return:
#         '''
#         with allure.step(f'初始化环境:打开{self.url}'):
#             log.info(f'🔥 Running case: Class:[{self.__class__.__name__}],method:[{method.__name__}]')
#
#             base_page = BasePage(self.driver)
#             base_page.open(self.url)   # 子类中必须包含url属性
#
#
#     def teardown_method(self,method):
#         log.info(f'🔚case End Class:[{self.__class__.__name__}],method:[{method.__name__}]')
#
#
#     def teardown_class(self):
#         log.info('🏁 FINISH')
#         self.driver.quit()